/*
 * Player.h
 *
 *  Created on: Jul 13, 2009
 *      Author: scott
 */

#ifndef PLAYER_H_
#define PLAYER_H_

#include <ode/ode.h>

#include "ObjectNode.h"
#include "Weapon.h"

class World;
class MeshObject;
class Player: public ObjectNode {
private:
	dBodyID body;
	World * world;
	Weapon * weapon;
	Weapon * weapons[10];
public:
	Player(World * world, SceneGraphNode * parent = NULL, bool ownsChildren = false);
	virtual ~Player();

	virtual void update();

	void switchTo(int weaponNum);

	void addWeapon(Weapon * weapon, int weaponNum);
};

#endif /* PLAYER_H_ */
